# -*- coding: UTF-8 -*-

"""
石头剪刀布升级版
"""
# import random
# while True:
#     print("——————————————剪刀石头布游戏开始啦——————————————")
#     check_list = ["石头", "剪刀", "布", "退出"]
#     com = random.randint(0, len(check_list) - 2)
#     computer = check_list[com]
#     play = input("请玩家输入“石头，剪刀，布”，“退出游戏请输入：退出”：")
#     if computer=="石头" and play=="布" or computer=="剪刀" and play=="石头" or computer=="布" and play=="剪刀":
#         print("玩家出：%s,电脑出：%s\n玩家赢" %(play,computer))
#     elif computer==play:
#         print("玩家出：%s,电脑出：%s\n平局" % (play, computer))
#     elif play=="退出":
#         print("————————退出游戏成功————————")
#         exit()
#     else:
#         print("玩家出：%s,电脑出：%s\n电脑赢" % (play, computer))

"""
一所学校，三间办公室，8位老师等待随机分配座位：
"""
# import random
# school=[[],[],[]]
# teacher=list("abcdefgh")
# for i in teacher:
#     sui_school = random.randint(0, len(school)-1)
#     sui_teach = random.randint(0, len(teacher)-1)
#     if teacher[sui_teach] not in school:
#         school[sui_school].append(i)
# print(school)
"""
用任意编程语言循环输出0-10.
"""
# for i in range(0,11):
#     print(i)
"""
欢乐逛欢迎您
"""
# a="欢乐逛欢迎您"
# print(a[::-1])
"""
str='a,hello'在字符串中查找hello
"""
# str='a,hello'
# print(str.find('hello'))
# print(str.index("hello"))
# print(str.count("hello"))
# if "hello" in str:
#     print("hello在str中")
"""
str="a,b,c,d"用逗号分割str字符串，并保存在列表;
"""
# str="a,b,c,d"
# list=[]
# str_1=str.split(',')
# list.extend(str_1)
# print(list)
"""
将“笔试题 123A”中 123 替换为“进行中”
"""
# str="笔试题 123A"
# print(str.replace("123","进行中"))